//
//  ViewController.m
//  ZWGif
//
//  Created by 郑亚伟 on 16/9/12.
//  Copyright © 2016年 郑亚伟. All rights reserved.
//

#import "ViewController.h"
#import "UIImage+GIF.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    //imageView.image = [UIImage imageNamed:@"01b1985545815d0000019ae9b7c787.jpg.gif"];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"01b1985545815d0000019ae9b7c787.jpg.gif" ofType:nil];
    NSData *data = [NSData dataWithContentsOfFile:path];
    UIImage *image = [UIImage sd_animatedGIFWithData:data];
    imageView.image = image;
    [self.view addSubview:imageView];
    //第一次修改、、、、、、、、、
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
